package com.ssy.lingxi.purchase.repository;

import com.ssy.lingxi.purchase.entity.purchaseinquiry.DemandMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*采购询价单-需求对接会员列表
* @author wrc
* @date 2020/7/8
*/
@Repository
public interface DemandMemberRepository extends JpaRepository<DemandMember, Long> {


    List<DemandMember> findAllByPurchaseInquiryId(Long purchaseInquiryId);


    void deleteAllByPurchaseInquiryId(Long purchaseInquiryId);

    void deleteAllByPurchaseInquiryIdIn(List<Long> purchaseInquiryIds);
}
